package com.ddlaw.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ddlaw.entity.TCity;
import com.ddlaw.entity.TProvince;
import com.ddlaw.mapper.TProvinceMapper;
import com.ddlaw.service.ProvinceService;
@Service
@Transactional
public class ProvinceServiceImpl implements ProvinceService{

	@Resource
	TProvinceMapper provinceMapper;
	@Override
	public List<TProvince> getProvince(int provinceId) {
		// TODO Auto-generated method stub
		return provinceMapper.getProvince(provinceId);
	}
	
	@Override
	public List<TCity> getCityByProId(@Param("provinceId") int provinceId) {
		// TODO Auto-generated method stub
		return provinceMapper.getCityByProId(provinceId);
	}
}	
